<?
$pageName = "score";
include ROOT . '/view/common/student/header.php';
?>
<?
/**
 * @var	Student $student
 */
?>
	<div class="container">
		<div class="page-header">
			<br /><br />
			<h2>
				<label>成绩信息</label>
			</h2>
		</div>
		<div class="row" style="margin-bottom:30px;">
			<div class="col-xs-12">
				<table class="table table-striped">
					<thead>
					<tr>
						<th>课程名</th>
						<th>学分数</th>
						<th>成绩</th>
						<th>授课老师</th>
					</tr>
					</thead>
					<tbody>
					<? foreach($courseSelections as $courseSelection) {
						if ($courseSelection->result) ?>
						<tr>
							<td><?=CourseClass::load($courseSelection->courseClassId)->course()->name?></td>
							<td><?=CourseClass::load($courseSelection->courseClassId)->course()->credit?></td>
							<td><?=$courseSelection->result?></td>
							<td><?=CourseClass::load($courseSelection->courseClassId)->teacher()->name?></td>
						</tr>
					<?}?>
					</tbody>
				</table>
			</div>

		</div>
		<!-- .row -->
		<center><div class="subpages row"><ul class="pagination pagination-sm"></ul></div></center>
	</div>
<? include ROOT . '/view/common/footer.php'; ?>